package com.chidopi.market.bookstore.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import com.chidopi.cdf.dao.IBaseDao;
import com.chidopi.cdf.service.IBaseService;
import com.chidopi.market.bookstore.domain.City2Category;

public class City2CategoryServiceImpl implements IBaseService<City2Category> {

	@Autowired
	@Qualifier("city2categoryDao")
	private IBaseDao<City2Category> dao;
	
	@Override
	public int insert(City2Category t) throws Exception {
		return this.dao.insert(t);
	}

	@Override
	public int update(City2Category t) throws Exception {
		return this.dao.update(t);
	}

	@Override
	public int delete(City2Category t) throws Exception {
		return this.dao.delete(t);
	}

	@Override
	public List<City2Category> find(String sqlWhere, Object... args)
			throws Exception {
		return this.dao.find(sqlWhere, args);
	}

	@Override
	public City2Category findById(Object id) throws Exception {
		return this.dao.findById(id);
	}

	@Override
	public int getNextSequence() throws Exception {
		return 0;
	}
}
